package com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance;

import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.dto.HrApprovalInstanceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.instance.param.HrApprovalInstanceUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrApprovalInstanceCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/approval/instance/fallback")
public class HrApprovalInstanceCloudServiceFallback implements HrApprovalInstanceCloudService {

    @Override
    public HrApprovalInstanceListCloudDto query(HrApprovalInstanceQueryCloudParam param) {
        return new HrApprovalInstanceListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrApprovalInstanceCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrApprovalInstanceUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrApprovalInstanceDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
